
package keter.mongo.model;

import java.util.List;

import keter.mongo.base.MongoBase;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * <p>Class       : keter.domain.CodeList
 * <p>Descdription: 图书类别
 * @author  顾力行-gulx@neusoft.com
 * @version 1.0.0
 */
/*
    name:类别名称
    code:类别代码
 */
public class Kind extends MongoBase<Kind> {
	/**
	 * Logger for this class
	 */
	private static final Logger logger = LoggerFactory.getLogger(Kind.class);
	
	public static final Kind dao = new Kind();

    public List<Kind> findByName(String name) throws Exception {
    	    filter.put("name", name);
            return find(filter);
    }
}
